package com.shanzmoo.db.module.member.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.shanzmoo.db.common.entity.BaseTimeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 会员优惠券
 * </p>
 *
 * @author wangyudi
 * @since 2021-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("member_coupon")
public class MemberCouponEntity extends BaseTimeEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 会员id
     */
    private String memberId;

    /**
     * 优惠券配置id
     */
    private Long couponConfigId;

    /**
     * 优惠券状态 1-未使用 2-已使用 3-过期
     */
    private Integer status;

}
